<template>
			<view class="success">
				<view class="content">
					<view class="success-icon"><image src="../../static/selected.png" mode=""></image></view>
					<view class="tit"><view>支付成功</view></view>
					<view class="btn-group">
						<view class="mix-btn" @click="orders()"><text>查看订单</text></view>
						<view class="mix-btn hollow" @click="hoems()"><text>返回首页</text></view>
					</view>
				</view>
			</view>
</template>

<script>
	export default{
		data(){
			return{
				data:"",
				times:""
			}
		},
		onLoad(e) {
			console.log(e)
			this.data=e.data
			this.times=e.times
		},
		methods:{
			orders(){
				uni.navigateTo({
					url:`../order/list?data=${this.data}&times=${this.times}`
				})
			},
			hoems(){
				uni.switchTab({
					url:'../home/home'
				})
			}
		}
	}
</script>

<style>
.success{
	width: 100%;
}
.btn-group{
	padding-top: 50px;
}
>>>.hollow{
	    background: #fff !important;
	    color: #303133 !important;
	    border: 1px solid #ccc !important;
}
.mix-btn text{
	   line-height: 40px;
}
.mix-btn{
	display: flex;
	justify-content: center;
	    width: 300px;
	    height: 40px;
	    font-size: 16px;
	    color: #fff;
	    background-color: #fa436a;
	    border-radius: 5px;
		text-align: center;
		display: inline-block;
		margin-top: 20px;
}
.content{
	text-align: center;
}
.success-icon image{
	width: 150upx;
	text-align: center;
	height: 150upx;
	margin-top: 100upx;
}
</style>
